// 设置集合（表）结构
// 1.引入mongoose
// 2.引入连接数据库

let mongoose = require('mongoose')
let userSchema = new mongoose.Schema({
    uid:String,
    uphome:String,
    ulogindata:String,
    uname:String,
    uIDType:String,
    UID:String,
    uACdata:String,
    is_face:String,
    uaddress:String,
    uaddressxx:String,
    is_state:String,
    fmailys:String
    
})
// 通过mongoose添加表结构时默认是复数会默认给你添加一个s
// 如果不想要s 需要在设置第三个参数相当于重命名
let User = mongoose.model('useradmin',userSchema,'useradmin')
module.exports = User